package band.wukong.practice.javase.core.io.standardio;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by IntelliJ IDEA.
 * User: Johnson
 * Date: 2012-8-24 9:56:49
 * To change this template use File | Settings | File Templates.
 */
public class Echo {

    public static void main(String[] args) throws IOException {
        BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
        String s;
        while ((s = stdin.readLine()) != null && s.length() != 0) {
            System.out.println(s);
        }
        // An empty line or Ctrl-Z terminates the program
    }
// How to read from standard input.
// {RunByHand}
}
